package com.nidu.demo.post.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nidu.demo.post.mapper.dataobject.PositionDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 职位Mapper接口
 *
 * @author auto
 */
@Mapper
public interface PositionMapper extends BaseMapper<PositionDO> {

    @Select("SELECT * FROM sys_post WHERE code = #{code} and company_id = #{companyId} LIMIT 1")
    PositionDO selectByCodeAndCompanyId(String code, Long companyId);
} 